//---------------------------------------------------------------------------
#ifndef MyTxtFileH
#define MyTxtFileH
//---------------------------------------------------------------------------
#include "MyUtility.h"
#ifdef MY_BORLAND
#include <SysUtils.hpp>
#include <Classes.hpp>
#endif
#include <stdio.h>
#include <fstream>
#include <sstream>
#include <string>
#include <vector>
#include <list>
using namespace std;

#define MYTXTFILE_VER10			0x10
//---------------------------------------------------------------------------
#ifdef MY_BORLAND
class PACKAGE MyTxtFile
#else
class MyTxtFile
#endif
{
private:
//	istringstream Main;
	list<char*>Data;
protected:
#ifdef MY_BORLAND
	int GetNumLines(void);	
	int GetVersion();
#endif	
public:
	MyTxtFile(char *FileName);
#ifdef MY_BORLAND	
	__property int NumLines = {read = GetNumLines};
	__property int Version = {read = GetVersion};
#else
	int GetNumLines(void);	
	int GetVersion();
#endif	
	char *GetLines(int Index);
};
//---------------------------------------------------------------------------
#endif